package com.zyjc.city.enums;

public enum ResultCodeEnum {
    SUCCESS(200,"successful"),
    FAIL(500, "fail"),
    SERVICE_ERROR(2012, "service error"),
    DATA_ERROR(204, "data error"),
    ILLEGAL_REQUEST(205, "illegal request"),
    REPEAT_SUBMIT(206, "repeat submit"),
    ARGUMENT_VALID_ERROR(210, "argument valid error"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    ACCOUNT_ERROR(214, "账号不正确"),
    PASSWORD_ERROR(215, "密码不正确"),
    LOGIN_MOBLE_ERROR( 216, "账号不正确"),
    ACCOUNT_STOP( 217, "账号已停用"),
    NODE_ERROR( 218, "该节点下有子节点，不可以删除")
    ;

    public Integer code;

    public String message;

    //构造器
    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
